const request = require('../utils/request')
let city = function getCity() {
  request._get('/api?method=util.getallarea', {}).then(res => {
    let obj = {
      provinces: res.data.list,
      citys: res.data.list1,
      areas: res.data.list2
    }
    return obj
  })
}

export {
  city
}